import { CHANGE_VALUE,ADD_ITEM,DELETE_ITEM } from './actionType.js';

const resource = {
	list:['111','222'],
	value:"我爱中国"
}
export default (state=resource,action)=>{
    if(action.type == "Change"){
        const newState = JSON.parse(JSON.stringify(state));
        newState.value = action.payload;
        return newState;
    }
	return  state;
}